package com.soo.hoo.admin.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.soo.hoo.core.model.BaseEntry;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 意见反馈表
 * </p>
 *
 * @author 杨燚
 * @since 2024-05-15
 */
@Getter
@Setter
@TableName("t_sys_suggestion")
@Schema(name = "SysSuggestion", description = "意见反馈表")
public class SysSuggestion extends BaseEntry {

    @Schema(description = "唯一标识")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "问题类型；1：改进意见；2：产品缺陷")
    @NotNull(message = "请选择问题类型")
    private Integer type;

    @Schema(description = "反馈的内容")
    @NotBlank(message = "请输入反馈内容")
    private String content;

    @Schema(description = "附带图片，图片id，对应sys_file表id列")
    private Long pictureId;

    @Schema(description = "是否已处理完成")
    private Boolean done;
}
